export default {
    namespaced: true,
    state: {
        loading: false
    },
    mutations: {
        SHOW_LOADING(state) {
            state.loading = true
        },
        HIDE_LOADING(state) {
            state.loading = false
        }
    },
    actions: {
        showLoading({ commit }) {
            commit('SHOW_LOADING')
        },
        hideLoading({ commit }) {
            commit('HIDE_LOADING')
        }
    }
}